/**   
 * All rights Reserved, Designed By MiGu  
 * Copyright:    Copyright(C) 2016-2020  
 * Company       MiGu  Co., Ltd.
*/
package mybatis.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import mybatis.entity.AnnotationEntity;
import mybatis.entity.PermitApplyDO;

public interface IPermitApplyDAO {

    List<String> queryPermitTypeByUid(Integer uid);

    PermitApplyDO selectByPrimaryKey(Long accountId);

    AnnotationEntity selectByPrimaryKey1(Long accountId);

    @Select("select * from permit_apply where user_name=#{userName} and apply_type=#{applyType}")
    PermitApplyDO selectByAnnotation(@Param(value = "userName") String userName,
            @Param(value = "applyType") String applyType);

    @Select("select * from permit_apply where account_id=#{aid}")
    PermitApplyDO selectByAnnotation1(Long aid);
}